/* cart.css */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0 15px;
    color: #333;
}

header {
    padding: 20px 0;
    border-bottom: 2px solid #4a90e2;
    text-align: center;
}

header h1 {
    margin: 0;
    color: #4a90e2;
    font-weight: 700;
    font-size: 2rem;
}

nav {
    margin-top: 10px;
}

.btn-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    border: 1.5px solid #4a90e2;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-link:hover {
    background-color: #4a90e2;
    color: #fff;
}

main {
    max-width: 900px;
    margin: 30px auto 60px;
    background-color: #fff;
    padding: 25px 30px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    border-radius: 10px;
}

.message p {
    color: green;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
}

.cart-table th {
    background-color: #4a90e2;
    color: white;
    font-weight: 600;
}

.inline-form {
    display: inline;
    margin: 0;
}

.btn-remove {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-remove:hover {
    background-color: #c0392b;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.total-section h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #222;
}

.btn-checkout {
    background-color: #27ae60;
    color: white;
    font-weight: 700;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: #1e8449;
}

.empty-cart {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    padding: 40px 0;
}

footer {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid #ccc;
    color: #555;
    font-size: 0.9rem;
}
